//
//  WKBindingViewController.m
//  WeKeTang
//
//  Created by ichina on 2017/9/6.
//  Copyright © 2017年 Dezhi Tiancheng Education Technology (Beijing) Co. Ltd. All rights reserved.
//

#import "WKBindingViewController.h"
#import "WKVerifyPhoneViewController.h"
#import "WKRegistViewController.h"
@interface WKBindingViewController ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *registerLabel;
@property (weak, nonatomic) IBOutlet UIButton *btnBinding;
@property (weak, nonatomic) IBOutlet UILabel *unRegisterLabel;
@property (weak, nonatomic) IBOutlet UIButton *btnUnBinding;
@property (weak, nonatomic) IBOutlet UILabel *serverLabel;

@end

@implementation WKBindingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
    self.view.backgroundColor = RGBColor(245, 245, 245);
    
    [self setupUI];
}
- (void)setupUI{
    //[self setLeftButtonWithImage:@"icon_return" highlightedImage:@"icon_return" target:self action:@selector(backAction)];
    self.navItem.title = @"绑定账号";
    self.statusbar.backgroundColor = [UIColor whiteColor];
    self.titleLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    self.registerLabel.textColor = [UIColor colorWithHexString:@"#666666"];
    self.unRegisterLabel.textColor = [UIColor colorWithHexString:@"#666666"];;
    self.serverLabel.textColor = [UIColor colorWithHexString:@"#999999"];
    self.titleLabel.text = [NSString stringWithFormat:@"你好,%@",self.nickName];
    
}
- (void)backAction{
    [MobClick profileSignInWithPUID:@"binding_back"];
    [super backAction];
}
#pragma mark - 绑定
- (IBAction)btnBindingAction:(UIButton *)sender {
    [MobClick profileSignInWithPUID:@"binding_tobinding"];
    WKVerifyPhoneViewController *verifyVC = [[WKVerifyPhoneViewController alloc]init];
    verifyVC.isBinding = YES;
    verifyVC.openid = self.openid;
    verifyVC.site = self.site;
    [self.navigationController pushViewController:verifyVC animated:YES];
    
    
}
#pragma mark - 立即注册
- (IBAction)regitserAction:(UIButton *)sender {
    [MobClick profileSignInWithPUID:@"binding_toregister"];
    WKRegistViewController *registerVC = [[WKRegistViewController alloc]init];
    registerVC.isBinding = YES;
    
    [self.navigationController pushViewController:registerVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    
}

@end
